﻿//===================================================================================
// Copyright (c) Ryan Garrett.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===================================================================================

using System;

namespace Caffeine.Core.Test.TestModel.ValidationModels
{
    public class DuplicatePropertyRegistrationModel : ModelBase
    {
        private readonly ModelProperty<String> _property1;
        private readonly ModelProperty<String> _property2;

        public DuplicatePropertyRegistrationModel()
        {
            _property1 = RegisterProperty<String>("Property1");
            _property2 = RegisterProperty<String>("Property1");
        }

        public ModelProperty<String> Property1
        {
            get
            {
                return _property1;
            }
        }

        public ModelProperty<String> Property2
        {
            get
            {
                return _property2;
            }
        }
    }
}
